package com.system.util;

import java.util.Map;



import org.codehaus.jackson.map.util.JSONPObject;

import com.google.gson.Gson;

/** 接口参数校验
 * 修改日期：2015/11/2
 */
public class AppUtil  {
	
	protected static Logger logger = Logger.getLogger(AppUtil.class);
	
	/**检查参数是否完整
	 * @param method
	 * @param pd
	 * @return
	 */
	public static boolean checkParam(String method, PageData pd){
		boolean result = false;
		
		int falseCount = 0;
		String[] paramArray = new String[20];
		String[] valueArray = new String[20];
		String[] tempArray  = new String[20];  //临时数组
		
	 if("getAppuserByUsernmae".equals(method)){//根据用户名获取会员信息
			paramArray = Const.APP_GETAPPUSER_PARAM_ARRAY;  
			valueArray = Const.APP_GETAPPUSER_VALUE_ARRAY;
		}else if("UserRegister".equals(method)){//用户注册数据检验
			paramArray = Const.IN_USERREGISTER_PARAM_ARRAY;  
			valueArray = Const.IN_USERREGISTER_VALUE_ARRAY;
		}else if("userLoginPhone".equals(method)){
			paramArray = Const.IN_USERPHONELOGIN_PARAM_ARRAY;  
			valueArray = Const.IN_USERPHONELOGIN_VALUE_ARRAY;
		}else if("userLoginCard".equals(method)){
			paramArray = Const.IN_USERCARDLOGIN_PARAM_ARRAY;  
			valueArray = Const.IN_USERCARDLOGIN_VALUE_ARRAY;
		}else if("userAddShipAdr".equals(method)){
			paramArray = Const.IN_USERADDSHIPADR_PARAM_ARRAY;  
			valueArray = Const.IN_USERADDSHIPADR_VALUE_ARRAY;
		}else if("userDelShipAdr".equals(method)){
			paramArray = Const.IN_USERDELSHIPADR_PARAM_ARRAY;  
			valueArray = Const.IN_USERDELSHIPADR_VALUE_ARRAY;
		}else if("userEdiShipAdr".equals(method)){
			paramArray = Const.IN_USEREDISHIPADR_PARAM_ARRAY;  
			valueArray = Const.IN_USEREDISHIPADR_VALUE_ARRAY;
		}else if("shipDetails".equals(method)){
			paramArray = Const.IN_SHIPDETAILS_PARAM_ARRAY;  
			valueArray = Const.IN_SHIPDETAILS_VALUE_ARRAY;
		}else if("shipBrandIconList".equals(method)){
			paramArray = Const.IN_SHIPBRANDICONLIST_PARAM_ARRAY;  
			valueArray = Const.IN_SHIPBRANDICONLIST_VALUE_ARRAY;
		}else if("shoppingCart".equals(method)){//购物车列表
			paramArray = Const.IN_SHOPCARTLIST_PARAM_ARRAY;  
			valueArray = Const.IN_SHOPCARTLIST_VALUE_ARRAY;
		}else if("shoppingCartAdd".equals(method)){//购物车添加商品
			paramArray = Const.IN_SHOPCARTADDLIST_PARAM_ARRAY;  
			valueArray = Const.IN_SHOPCARTADDLIST_VALUE_ARRAY;
		}else if("shoppingCartDel".equals(method)){//从购物车删除商品
			paramArray = Const.IN_SHOPCARTDEL_PARAM_ARRAY;  
		    valueArray = Const.IN_SHOPCARTDEL_VALUE_ARRAY;
		}else if("shipOrder".equals(method)){
			paramArray = Const.IN_ADDORDER_PARAM_ARRAY;  
			valueArray = Const.IN_ADDORDER_VALUE_ARRAY;
		}else if("shipOrderStaUpd".equals(method)){
			paramArray = Const.IN_UPDORDERSTATUS_PARAM_ARRAY;  
			valueArray = Const.IN_UPDORDERSTATUS_VALUE_ARRAY;
		}else if("shipCollectAdd".equals(method)){
			paramArray = Const.IN_COLLECTADD_PARAM_ARRAY;  
			valueArray = Const.IN_COLLECTADD_VALUE_ARRAY;
		}else if("sFoodAddEva".equals(method)){
			paramArray = Const.IN_SFOODADDEVA_PARAM_ARRAY;  
			valueArray = Const.IN_SFOODADDEVA_VALUE_ARRAY;
		}else if("sFoodMeanEva".equals(method)){
			paramArray = Const.IN_SFOODMEANEVA_PARAM_ARRAY;  
			valueArray = Const.IN_SFOODMEANEVA_VALUE_ARRAY;
		}else if("sHotelAddEva".equals(method)){
			paramArray = Const.IN_SHOTELADDEVA_PARAM_ARRAY;  
			valueArray = Const.IN_SHOTELADDEVA_VALUE_ARRAY;
		}else if("sHotelMeanEva".equals(method)){
			paramArray = Const.IN_SHOTELMEANEVA_PARAM_ARRAY;  
			valueArray = Const.IN_SHOTELMEANEVA_VALUE_ARRAY;
		}else if("shipHotelOrder".equals(method)){
			paramArray = Const.IN_ADDHOTELORDER_PARAM_ARRAY;  
			valueArray = Const.IN_ADDHOTELORDER_VALUE_ARRAY;
		}else if("shipHotelOrderStaUpd".equals(method)){
			paramArray = Const.IN_UPDHOTELORDERSTATUS_PARAM_ARRAY;  
			valueArray = Const.IN_UPDHOTELORDERSTATUS_VALUE_ARRAY;
		}else if("NewsEvaAdd".equals(method)){
			paramArray = Const.IN_NEWSEVAADD_PARAM_ARRAY;  
			valueArray = Const.IN_NEWSEVAADD_VALUE_ARRAY;
		}else if("addParty".equals(method)){
			paramArray = Const.IN_PARTYADD_PARAM_ARRAY;  
			valueArray = Const.IN_PARTYADD_VALUE_ARRAY;
		}else if("sKTVAddEva".equals(method)){
			paramArray = Const.IN_SKTVADDEVA_PARAM_ARRAY;  
			valueArray = Const.IN_SKTVADDEVA_VALUE_ARRAY;
		}else if("sKTVMeanEva".equals(method)){
			paramArray = Const.IN_SKTVMEANEVA_PARAM_ARRAY;  
			valueArray = Const.IN_SKTVMEANEVA_VALUE_ARRAY;
		}else if("shipKTVOrder".equals(method)){
			paramArray = Const.IN_ADDKTVORDER_PARAM_ARRAY;  
			valueArray = Const.IN_ADDKTVORDER_VALUE_ARRAY;
		}else if("shipKTVOrderStaUpd".equals(method)){
			paramArray = Const.IN_UPDKTVORDERSTATUS_PARAM_ARRAY;  
			valueArray = Const.IN_UPDKTVORDERSTATUS_VALUE_ARRAY;
		}else if("sDistance".equals(method)){
			paramArray = Const.IN_SDISTANCE_PARAM_ARRAY;  
			valueArray = Const.IN_SDISTANCE_VALUE_ARRAY;
		}else if("sBarMeanEva".equals(method)){
			paramArray = Const.IN_SBARMEANEVA_PARAM_ARRAY;  
			valueArray = Const.IN_SBARMEANEVA_VALUE_ARRAY;
		}else if("addBarEva".equals(method)){
			paramArray = Const.IN_ADDBAREVA_PARAM_ARRAY;  
			valueArray = Const.IN_ADDBAREVA_VALUE_ARRAY;
		}else if("addBarOrder".equals(method)){
			paramArray = Const.IN_ADDBARORDER_PARAM_ARRAY;  
			valueArray = Const.IN_ADDBARORDER_VALUE_ARRAY;
		}else if("updBarOrderStaUpd".equals(method)){
			paramArray = Const.IN_UPDBARORDERSTATUS_PARAM_ARRAY;  
			valueArray = Const.IN_UPDKTVORDERSTATUS_VALUE_ARRAY;
		}else if("allOrder".equals(method)){//获得用户所有订单列表
			paramArray = Const.IN_SDISTANCE_PARAM_ARRAY;  
			valueArray = Const.IN_SDISTANCE_VALUE_ARRAY;
		}else if("conOrder".equals(method)){//用户订单状态列表
			paramArray = Const.IN_CONORDER_PARAM_ARRAY;  
			valueArray = Const.IN_CONORDER_VALUE_ARRAY;
		}else if("sSequence".equals(method)){
			paramArray = Const.IN_SSEQUENCE_PARAM_ARRAY;  
			valueArray = Const.IN_SSEQUENCE_VALUE_ARRAY;
		}else if("allBarOrder".equals(method)){
			paramArray = Const.IN_ALLBARORDER_PARAM_ARRAY;  
			valueArray = Const.IN_ALLBARORDER_VALUE_ARRAY;
		}else if("shipFoodOrder".equals(method)){
			paramArray = Const.IN_ADDFOODORDER_PARAM_ARRAY;  
			valueArray = Const.IN_ADDFOODORDER_VALUE_ARRAY;
		}else if("addOtherParty".equals(method)){
			paramArray = Const.IN_OTHERPARTYADD_PARAM_ARRAY;  
			valueArray = Const.IN_OTHERPARTYADD_VALUE_ARRAY;
		}else if("getPartyList".equals(method)){
			paramArray = Const.IN_GETPARTYLIST_PARAM_ARRAY;  
			valueArray = Const.IN_GETPARTYLIST_VALUE_ARRAY;
		}else if("addFriend".equals(method)){//用户添加好友(关注)
			paramArray = Const.IN_ADDFRIEND_PARAM_ARRAY;  
			valueArray = Const.IN_ADDFRIEND_VALUE_ARRAY;
		}else if("getFriendList".equals(method)){
			paramArray = Const.IN_GETFRIENDLIST_PARAM_ARRAY;
			valueArray = Const.IN_GETFRIENDLIST_VALUE_ARRAY;
		}else if("shipBrandStyleList".equals(method)){
			paramArray = Const.IN_BRANDSTYLELIST_PARAM_ARRAY;
			valueArray = Const.IN_BRANDSTYLELIST_VALUE_ARRAY;
		}else if("checkchannel".equals(method)){//获取某个电台下的歌曲列表接口
			paramArray = Const.IN_CHECKCHANNEL_PARAM_ARRAY;
			valueArray = Const.IN_CHECKCHANNEL_VALUE_ARRAY;
		}else if("songplay".equals(method)){//获取歌曲详细接口
			paramArray = Const.IN_SONGPLAY_PARAM_ARRAY;
			valueArray = Const.IN_SONGPLAY_VALUE_ARRAY;
		}else if("searchsong".equals(method)){//获得所有模糊查询的歌曲列表接口
			paramArray = Const.IN_SEARCHSONG_PARAM_ARRAY;
			valueArray = Const.IN_SEARCHSONG_VALUE_ARRAY;
		}else if("billlist".equals(method)){//获得排行榜列表接口
			paramArray = Const.IN_BILLLIST_PARAM_ARRAY;
			valueArray = Const.IN_BILLLIST_VALUE_ARRAY;
		}else if("lry".equals(method)){//获得歌曲歌词接口
			paramArray = Const.IN_GETLRY_PARAM_ARRAY;
			valueArray = Const.IN_GETLRY_VALUE_ARRAY;
		}else if("songlist".equals(method)){//通过歌手获取其所有歌曲列表接口
			paramArray = Const.IN_SONGLIST_PARAM_ARRAY;
			valueArray = Const.IN_SONGLIST_VALUE_ARRAY;
		}else if("album".equals(method)){//新碟专辑接口
			paramArray = Const.IN_ALBUM_PARAM_ARRAY;
			valueArray = Const.IN_ALBUM_VALUE_ARRAY;
		}else if("albuminfo".equals(method)){//专辑详细信息接口
			paramArray = Const.IN_ALBUMINFO_PARAM_ARRAY;
			valueArray = Const.IN_ALBUMINFO_VALUE_ARRAY;
		}else if("searchsongs".equals(method)){//歌手模糊查询歌曲接口
			paramArray = Const.IN_SEARCHSONGS_PARAM_ARRAY;
			valueArray = Const.IN_SEARCHSONGS_VALUE_ARRAY;
		}else if("artistinfo".equals(method)){//歌手简介接口
			paramArray = Const.IN_ARTISTINFO_PARAM_ARRAY;
			valueArray = Const.IN_ARTISTINFO_VALUE_ARRAY;
		}else if("dotAgree".equals(method)){
			paramArray = Const.IN_DOTAGREE_PARAM_ARRAY;  
			valueArray = Const.IN_DOTAGREE_VALUE_ARRAY;
		}else if("addComment".equals(method)){
			paramArray = Const.IN_ADDCOMMENT_PARAM_ARRAY;  
			valueArray = Const.IN_ADDCOMMENT_VALUE_ARRAY;
		}else if("commentList".equals(method)){
			paramArray = Const.IN_COMMENTLIST_PARAM_ARRAY;  
			valueArray = Const.IN_COMMENTLIST_VALUE_ARRAY;
		}else if("addCircle".equals(method)){
			paramArray = Const.IN_ADDCIRCLE_PARAM_ARRAY;  
			valueArray = Const.IN_ADDCIRCLE_VALUE_ARRAY;
		}else if("addReply".equals(method)){  
			paramArray = Const.IN_ADDREPLY_PARAM_ARRAY;  
			valueArray = Const.IN_ADDREPLY_VALUE_ARRAY;
		}else if("replyList".equals(method)){  //根据评论ID获取所有回复者
			paramArray = Const.IN_REPLYLIST_PARAM_ARRAY;  
			valueArray = Const.IN_REPLYLIST_VALUE_ARRAY;
		}else if("updUserPassword".equals(method)){   //用户修改密码接口
			paramArray = Const.IN_UPDUSERPASSWORD_PARAM_ARRAY;  
			valueArray = Const.IN_UPDUSERPASSWORD_VALUE_ARRAY;
		}else if("cardImgs".equals(method)){
			paramArray = Const.IN_CARDIMGS_PARAM_ARRAY;  
			valueArray = Const.IN_CARDIMGS_VALUE_ARRAY;
		}else if("sProductAddEva".equals(method)){   //给商品添加用户评价
			paramArray = Const.IN_SPRODUCTADDEVA_PARAM_ARRAY;  
			valueArray = Const.IN_SPRODUCTADDEVA_VALUE_ARRAY;
		}else if("getUserByForget".equals(method)){   //找回登录密码 (忘记密码)
			paramArray = Const.IN_USERBYFORGET_PARAM_ARRAY;  
			valueArray = Const.IN_USERBYFORGET_VALUE_ARRAY;
		}else if("updUserPhone".equals(method)){   //修改用户手机号码
			paramArray = Const.IN_UPDUSERPHONE_PARAM_ARRAY;  
			valueArray = Const.IN_UPDUSERPHONE_VALUE_ARRAY;
		}else if("advertisementList".equals(method)){   //根据广告栏位置查询广告
			paramArray = Const.IN_ADLIST_PARAM_ARRAY;  
			valueArray = Const.IN_ADLIST_VALUE_ARRAY;
		}else if("editClickCount".equals(method)){   //修改点击次数
			paramArray = Const.IN_EDITCLICKCOUNT_PARAM_ARRAY;  
			valueArray = Const.IN_EDITCLICKCOUNT_VALUE_ARRAY;
		}else if("getConvergeSortById".equals(method)){   //根据汇聚ID查询分类列表
			paramArray = Const.IN_GETCONVERGESORT_PARAM_ARRAY;  
			valueArray = Const.IN_GETCONVERGESORTT_VALUE_ARRAY;
		}else if("getTopicByTitle".equals(method)){   //根据话题查询 
			paramArray = Const.IN_GETTOPICBYTITLE_PARAM_ARRAY;  
			valueArray = Const.IN_GETTOPICBYTITLE_VALUE_ARRAY;
		}else if("getMagazineById".equals(method)){  //通过ID获取杂志详情 
			paramArray = Const.IN_GETMAGAZINEBYID_PARAM_ARRAY;    
			valueArray = Const.IN_GETMAGAZINEBYID_VALUE_ARRAY;
		}else if("PullAddress".equals(method)){   //获取拉流地址
			paramArray = Const.IN_PULLADDRESS_PARAM_ARRAY;   
			valueArray = Const.IN_PULLADDRESS_VALUE_ARRAY;
		}else if("getSearchListByParentId".equals(method)){  //显示首页/尊购/汇聚→搜索的字 
			paramArray = Const.IN_SEARCHLIST_PARAM_ARRAY;    
			valueArray = Const.IN_SEARCHLIST_VALUE_ARRAY;
		}else if("getsingersonglist".equals(method)){   //音乐中心-歌手推荐-获取歌手歌曲列表 
			paramArray = Const.IN_SINGERSONGLIST_PARAM_ARRAY;   
			valueArray = Const.IN_SINGERSONGLIST_VALUE_ARRAY;
		}else if("PushLive".equals(method)){   //主播开播将数据存到数据库
			paramArray = Const.IN_PUSHLIVE_PARAM_ARRAY;   
			valueArray = Const.IN_PUSHLIVE_VALUE_ARRAY;
		}else if("getTrapeze".equals(method)){   //更新用户经纬度坐标
			paramArray = Const.IN_UPDTRAPEZE_PARAM_ARRAY;   
			valueArray = Const.IN_UPDTRAPEZE_VALUE_ARRAY;
		}else if("getCouponListById".equals(method)){  //根据business_id获取优惠券列表 
			paramArray = Const.IN_COUPONLIST_PARAM_ARRAY;    
			valueArray = Const.IN_COUPONLIST_VALUE_ARRAY;
		}else if("addCoupon".equals(method)){   //用户领取优惠券
			paramArray = Const.IN_ADDCOUPON_PARAM_ARRAY;    
			valueArray = Const.IN_ADDCOUPON_VALUE_ARRAY;
		}else if("addCart".equals(method)){  //添加商品到购物车 
			paramArray = Const.IN_ADDCART_PARAM_ARRAY;    
			valueArray = Const.IN_ADDCART_VALUE_ARRAY;
		}else if("addProduct".equals(method)){   //添加商品 
			paramArray = Const.IN_ADDPRODUCT_PARAM_ARRAY;   
			valueArray = Const.IN_ADDPRODUCT_VALUE_ARRAY;
		}else if("addStandard".equals(method)){ //给商品添加规格  
			paramArray = Const.IN_ADDSTANDARD_PARAM_ARRAY;    
			valueArray = Const.IN_ADDSTANDARD_VALUE_ARRAY;
		}else if("deleteStandard".equals(method)){   //删除商品规格
			paramArray = Const.IN_DELSTANDARD_PARAM_ARRAY;    
			valueArray = Const.IN_DELSTANDARD_VALUE_ARRAY;
		}else if("deleteCart".equals(method)){   
			paramArray = Const.IN_DELETECART_PARAM_ARRAY;    //删除购物车
			valueArray = Const.IN_DELETECART_VALUE_ARRAY;
		}else if("cartNumber".equals(method)){   
			paramArray = Const.IN_CARTNUM_PARAM_ARRAY;    //购物车数量
			valueArray = Const.IN_CARTNUM_VALUE_ARRAY;
		}else if("cartInfo".equals(method)){   
			paramArray = Const.IN_CARTINFO_PARAM_ARRAY;    //购物车单个信息
			valueArray = Const.IN_CARTINFO_VALUE_ARRAY;
		}else if("updateCart".equals(method)){   
			paramArray = Const.IN_UPDATECART_PARAM_ARRAY;    //修改购物车
			valueArray = Const.IN_UPDATECART_VALUE_ARRAY;
		}else if("selectCartByUserId".equals(method)){   
			paramArray = Const.IN_SELECTCARTBYUSERID_PARAM_ARRAY;    //根据用户id查询购物车列表
			valueArray = Const.IN_SELECTCARTBYUSERID_VALUE_ARRAY;
		}else if("deleteProductIds".equals(method)){   
			paramArray = Const.IN_DELETEPRODUCTIDS_PARAM_ARRAY;    //根据用户id从购物车移除商品
			valueArray = Const.IN_DELETEPRODUCTIDS_VALUE_ARRAY;
		}else if("updProChecked".equals(method)){   
			paramArray = Const.IN_UPDPROCHECKED_PARAM_ARRAY;    //根据用户id修改购物车已选或未选
			valueArray = Const.IN_UPDPROCHECKED_VALUE_ARRAY;
		}else if("selectCartProAllCount".equals(method)){   
			paramArray = Const.IN_SELECTCARTPROALLCOUNT_PARAM_ARRAY;    //根据用户id查询已选购物车商品总数
			valueArray = Const.IN_SELECTCARTPROALLCOUNT_VALUE_ARRAY;
		}else if("selectCartByDoubleId".equals(method)){   
			paramArray = Const.IN_SELECTCARTBYDOUBLEID_PARAM_ARRAY;    //根据用户id和商品id查询是否已存在该商品的购物车 
			valueArray = Const.IN_SELECTCARTBYDOUBLEID_VALUE_ARRAY;
		}else if("selectProductByUserIdAndChecked".equals(method)){   
			paramArray = Const.IN_SETTLEMENT_PARAM_ARRAY;    //根据用户id和选择状态查询商品(购物车结算可用)
			valueArray = Const.IN_SETTLEMENT_VALUE_ARRAY;
		}else if("buyNow".equals(method)){   
			paramArray = Const.IN_BUYNOW_PARAM_ARRAY;    //立即购买
			valueArray = Const.IN_BUYNOW_VALUE_ARRAY;
		}else if("upCartCheckStatus".equals(method)){   
			paramArray = Const.IN_CHECKSTATUS_PARAM_ARRAY;    //根据购物车id修改选择状态
			valueArray = Const.IN_CHECKSTATUS_VALUE_ARRAY;
		}else if("commitOder".equals(method)){   
			paramArray = Const.IN_ADDORDERS_PARAM_ARRAY;    //提交订单
			valueArray = Const.IN_ADDORDERS_VALUE_ARRAY;
		}else if("oneKeyPayment".equals(method)){   
			paramArray = Const.IN_PAYMENT_PARAM_ARRAY;    //一键支付
			valueArray = Const.IN_PAYMENT_VALUE_ARRAY;
		}else if("selectCartListInfo".equals(method)){   
			paramArray = Const.IN_SELECTCARTLISTINFO_PARAM_ARRAY;    //获取购物车列表
			valueArray = Const.IN_SELECTCARTLISTINFO_VALUE_ARRAY;
		}else if("saveAdderss".equals(method)){   
			paramArray = Const.IN_ADDADDERSS_PARAM_ARRAY;    //添加地址
			valueArray = Const.IN_ADDADDERSS_VALUE_ARRAY;
		}else if("firmOrder".equals(method)){   
			paramArray = Const.IN_FIRMODER_PARAM_ARRAY;    //确认订单
			valueArray = Const.IN_FIRMODER_VALUE_ARRAY;
		}else if("unifiedOrder".equals(method)){   
			paramArray = Const.IN_UNIFIEDORDER_PARAM_ARRAY;    //微信统一下单
			valueArray = Const.IN_UNIFIEDORDER_VALUE_ARRAY;
		}else if("orderInfo".equals(method)){   
			paramArray = Const.IN_ORDERINFO_PARAM_ARRAY;    //订单详情
			valueArray = Const.IN_ORDERINFO_VALUE_ARRAY;
		}else if("selectStandardIdAndPrice".equals(method)){   
			paramArray = Const.IN_PROPRISTO_PARAM_ARRAY;    //动态查询商品的规格id,价格以及库存
			valueArray = Const.IN_PROPRISTO_VALUE_ARRAY;
		}else if("updateAdr".equals(method)){   
			paramArray = Const.IN_UPDATEADR_PARAM_ARRAY;    //修改地址
			valueArray = Const.IN_UPDATEADR_VALUE_ARRAY;
		}else if("adrInfo".equals(method)){   
			paramArray = Const.IN_ADRINFO_PARAM_ARRAY;    //根据用户id以及地址id查询地址信息
			valueArray = Const.IN_ADRINFO_VALUE_ARRAY;
		}else if("delAddress".equals(method)){   
			paramArray = Const.IN_DELADDRESS_PARAM_ARRAY;    //根据用户id与地址id删除地址
			valueArray = Const.IN_DELADDRESS_VALUE_ARRAY;
		}else if("updateAdrStatus".equals(method)){   
			paramArray = Const.IN_ADRSTA_PARAM_ARRAY;    //修改地址状态
			valueArray = Const.IN_ADRSTA_VALUE_ARRAY;
		}else if("updateOrderStatus".equals(method)){   
			paramArray = Const.IN_UPORDSTA_PARAM_ARRAY;    //修改订单状态
			valueArray = Const.IN_UPORDSTA_VALUE_ARRAY;
		}else if("delorder".equals(method)){   
			paramArray = Const.IN_DELORDER_PARAM_ARRAY;    //删除订单
			valueArray = Const.IN_DELORDER_VALUE_ARRAY;
		}else if("adrList".equals(method)){   
			paramArray = Const.IN_ADRLIST_PARAM_ARRAY;    //地址列表
			valueArray = Const.IN_ADRLIST_VALUE_ARRAY;
		}else if("addEva".equals(method)){   
			paramArray = Const.IN_ADDEVA_PARAM_ARRAY;    //添加商品评价
			valueArray = Const.IN_ADDEVA_VALUE_ARRAY;
		}else if("honEvaList".equals(method)){   
			paramArray = Const.IN_HONEVALIST_PARAM_ARRAY;    //用户查询评价列表
			valueArray = Const.IN_HONEVALIST_VALUE_ARRAY;
		}else if("busEvaList".equals(method)){   
			paramArray = Const.IN_BUSEVALIST_PARAM_ARRAY;    //商家查询评价列表
			valueArray = Const.IN_BUSEVALIST_VALUE_ARRAY;
		}else if("getAllOrderList".equals(method)){   
			paramArray = Const.IN_ALLORDERLIST_PARAM_ARRAY;    //获得用户名下所有相关订单列表接口
			valueArray = Const.IN_ALLORDERLIST_VALUE_ARRAY;
		}else if("getRecommend".equals(method)){   
			paramArray = Const.IN_RECOMMEND_PARAM_ARRAY;    //获取推荐列表
			valueArray = Const.IN_RECOMMEND_VALUE_ARRAY;
		}else if("screenList".equals(method)){//直播中筛选条件
			paramArray = Const.IN_SCREENLIST_PARAM_ARRAY;  
			valueArray = Const.IN_SCREENLIST_VALUE_ARRAY;
		}else if("likeuserlist".equals(method)){//直播中根据用户昵称查询
			paramArray = Const.IN_LIKEUSERLIST_PARAM_ARRAY;  
			valueArray = Const.IN_LIKEUSERLIST_VALUE_ARRAY;
		}else if("addCart".equals(method)){    //添加商品到购物车
			paramArray = Const.IN_ADDCART_PARAM_ARRAY;   
			valueArray = Const.IN_ADDCART_VALUE_ARRAY;
		}else if("addStandard".equals(method)){   //给商品添加规格
			paramArray = Const.IN_ADDSTANDARD_PARAM_ARRAY;    
			valueArray = Const.IN_ADDSTANDARD_VALUE_ARRAY;
		}else if("deleteStandard".equals(method)){    //删除商品规格
			paramArray = Const.IN_DELSTANDARD_PARAM_ARRAY;   
			valueArray = Const.IN_DELSTANDARD_VALUE_ARRAY;
		}else if("getStandardBySize".equals(method)){    //根据尺寸和颜色查询规格
			paramArray = Const.IN_GETSTANDARDBYSIZE_PARAM_ARRAY;   
			valueArray = Const.IN_GETSTANDARDBYSIZE_VALUE_ARRAY;
		}else if("gifttouser".equals(method)){    //给主播赠送礼物接口
			paramArray = Const.IN_GIFTTOUSER_PARAM_ARRAY;   
			valueArray = Const.IN_GIFTTOUSER_VALUE_ARRAY;
		}else if("manyUserId".equals(method)){    //多个UserId的情况下
			paramArray = Const.IN_MANYUSERID_PARAM_ARRAY;   
			valueArray = Const.IN_MANYUSERID_VALUE_ARRAY;
		}else if("getRankingList".equals(method)){    //获得排行榜信息
			paramArray = Const.IN_RANKINGLIST_PARAM_ARRAY;   
			valueArray = Const.IN_RANKINGLIST_VALUE_ARRAY;
		}else if("addApplyBusiness".equals(method)){    //商家提交入驻信息
			paramArray = Const.IN_APPLYBUSINESS_PARAM_ARRAY;   
			valueArray = Const.IN_APPLYBUSINESS_VALUE_ARRAY;
		}else if("getApplyBusiness".equals(method)){    //获取商家入驻信息
			paramArray = Const.IN_GETAPPLYBUSINESS_PARAM_ARRAY;   
			valueArray = Const.IN_GETAPPLYBUSINESS_VALUE_ARRAY;
		}else if("updTopLine".equals(method)){    //修改用户订阅的头条
			paramArray = Const.IN_UPDTOPLINE_PARAM_ARRAY;   
			valueArray = Const.IN_UPDTOPLINE_VALUE_ARRAY;
		}else if("getOrderItemById".equals(method)){    //后台根据商家id和订单号获取订单项
			paramArray = Const.IN_BACKENDORDERITEM_PARAM_ARRAY;   
			valueArray = Const.IN_BACKENDORDERITEM_VALUE_ARRAY;
		}else if("getColorsBySize".equals(method)){    //根据尺寸查询颜色
			paramArray = Const.IN_GETCOLORSBYSIZE_PARAM_ARRAY;   
			valueArray = Const.IN_GETCOLORSBYSIZE_VALUE_ARRAY;
		}else if("getSizesByColor".equals(method)){    //根据颜色查询尺寸 
			paramArray = Const.IN_GETSIZESBYCOLOR_PARAM_ARRAY;   
			valueArray = Const.IN_GETSIZESBYCOLOR_VALUE_ARRAY;
		}else if("getOrderNumAndMoney".equals(method)){    //后台获取订单数量和订单金额
			paramArray = Const.IN_GETORDERNUMANDMONEY_PARAM_ARRAY;   
			valueArray = Const.IN_GETORDERNUMANDMONEY_VALUE_ARRAY;
		}else if("addLogistics".equals(method)){    //后台发货
			paramArray = Const.IN_ADDLOGISTICS_PARAM_ARRAY;   
			valueArray = Const.IN_ADDLOGISTICS_VALUE_ARRAY;
		}else if("busiAddCoupon".equals(method)){    //后台商家添加优惠券
			paramArray = Const.IN_BUSIADDCOUPON_PARAM_ARRAY;   
			valueArray = Const.IN_BUSIADDCOUPON_VALUE_ARRAY;
		}else if("getCoupon".equals(method)){    //后台根据id获取优惠券
			paramArray = Const.IN_COUPON_PARAM_ARRAY;   
			valueArray = Const.IN_COUPON_VALUE_ARRAY;
		}else if("addBrandOrCate".equals(method)){    //后台添加分类(品牌)
			paramArray = Const.IN_ADDBRANDORCATE_PARAM_ARRAY;   
			valueArray = Const.IN_ADDBRANDORCATE_VALUE_ARRAY;
		}else if("updShopCategory".equals(method)){    //后台店铺添加或修改品牌
			paramArray = Const.IN_ADDBUSIBRAND_PARAM_ARRAY;   
			valueArray = Const.IN_ADDBUSIBRAND_VALUE_ARRAY;
		}else if("updPageViews".equals(method)){    //修改头条的浏览量
			paramArray = Const.IN_UPDPAGEVIEWS_PARAM_ARRAY;   
			valueArray = Const.IN_UPDPAGEVIEWS_VALUE_ARRAY;
		}else if("sortBrandOrCate".equals(method)){    //后台酒吧，KTV，美食，酒店添加品牌或分类
			paramArray = Const.IN_SORTBRANDORCATE_PARAM_ARRAY;   
			valueArray = Const.IN_SORTBRANDORCATE_VALUE_ARRAY;
		}else if("getBrandOrCateById".equals(method)){    //后台酒吧，KTV，美食，酒店根据id获取品牌或分类
			paramArray = Const.IN_GETBRANDORCATEBYID_PARAM_ARRAY;   
			valueArray = Const.IN_GETBRANDORCATEBYID_VALUE_ARRAY;
		}else if("getShopInfo".equals(method)){    //后台获取店铺信息需要的参数
			paramArray = Const.IN_GETSHOPINFO_PARAM_ARRAY;   
			valueArray = Const.IN_GETSHOPINFO_VALUE_ARRAY;
		}else if("updVersion".equals(method)){    //后台app版本信息需要的参数
			paramArray = Const.IN_UPDAPPVERSION_PARAM_ARRAY;   
			valueArray = Const.IN_UPDAPPVERSION_VALUE_ARRAY;
		}else if("getSortName".equals(method)){    //后台获取店铺分类
			paramArray = Const.IN_GETSORT_PARAM_ARRAY;   
			valueArray = Const.IN_GETSORT_VALUE_ARRAY;
		}else if("getButtonInfo".equals(method)){    //获取游艇等处的按钮信息
			paramArray = Const.IN_GETBUTTONINFO_PARAM_ARRAY;   
			valueArray = Const.IN_GETBUTTONINFO_VALUE_ARRAY;
		}else if("getButtonList".equals(method)){    //获取游艇等处的按钮
			paramArray = Const.IN_GETBUTTONLIST_PARAM_ARRAY;   
			valueArray = Const.IN_GETBUTTONLIST_VALUE_ARRAY;
		}else if("addHighOrder".equals(method)){    //高端特权生成订单
			paramArray = Const.IN_ADDHIGHORDER_PARAM_ARRAY;   
			valueArray = Const.IN_ADDHIGHORDER_VALUE_ARRAY;
		}else if("pay".equals(method)){    //订单支付处理(生成支付宝订单)
			paramArray = Const.IN_ALIPAY_PARAM_ARRAY;   
			valueArray = Const.IN_ALIPAY_VALUE_ARRAY;
		}else if("aliPayRefund".equals(method)){    //支付宝退款 接口 
			paramArray = Const.IN_ALIPAYREFUND_PARAM_ARRAY;   
			valueArray = Const.IN_ALIPAYREFUND_VALUE_ARRAY;
		}else if("wechatlogin".equals(method)){    //支微信小程序登陆凭证校验接口
			paramArray = Const.IN_WECHATLOGIN_PARAM_ARRAY;   
			valueArray = Const.IN_WECHATLOGIN_VALUE_ARRAY;
		}
	 
	
	 
	 
	 
		
		int size = paramArray.length;
		for(int i=0;i<size;i++){
			String param = paramArray[i];
			if(!pd.containsKey(param)){
				tempArray[falseCount] = valueArray[i]+"--"+param;
				falseCount += 1;
			}
		}
		if(falseCount>0){
			logger.error(method+"接口，请求协议中缺少 "+falseCount+"个 参数");
			for(int j=1;j<=falseCount;j++){
				logger.error("   第"+j+"个："+ tempArray[j-1]);
			}
		} else {
			result = true;
		}
		
		return result;
	}
	
	
	
	/**
	 * @param pd
	 * @param map
	 * @return
	 */
	@SuppressWarnings("rawtypes")
	public static Object returnObject(PageData pd, Map map){
		if(pd.containsKey("callback")){
			String callback = pd.get("callback").toString();
			return new JSONPObject(callback, map);
		}else{
			return map;
		}
	}
	
	/**jsonp解决跨域
	 * @param pd
	 * @param map
	 * @return
	 */
	@SuppressWarnings("rawtypes")
	public static Object returnJsonp(PageData pd, Map map){
		if(pd.containsKey("callback")){
			return pd.getString("callback")+"("+new Gson().toJson(AppUtil.returnObject(pd, map))+")";
		}else{
			return map;
		}
	}
}
